package com.selune.online.ordering.system.project.api.service.tenant;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.selune.online.ordering.system.project.api.base.response.Response;
import com.selune.online.ordering.system.project.api.pojo.order.dto.OrderSearchDTO;
import com.selune.online.ordering.system.project.api.pojo.order.vo.OrderOverviewVO;

/**
 * 商户订单管理接口
 *
 * @author xiaoyp
 * @date 2020/2/19
 */

public interface ITenantOrderService {
	
	/**
	 * 完成订单
	 * @param orderId 订单Id
	 * @return True/False
	 */
	Response<Boolean> finishOrder(Long orderId);
	
	/**
	 * 订单分页
	 *
	 * @param current          当前页
	 * @param size             页大小
	 * @param orderSearchDTO 订单查询条件
	 * @return 订单分页
	 */
	Response<Page<OrderOverviewVO>> listOrder(Integer current, Integer size,
	                                          OrderSearchDTO orderSearchDTO);
}
